package notes.java.sjms23.t21_builder;

// 建造者模式
public class Client {

    public static void main(String[] args) {
        
        // 导演者角色
        CarDirector director = new CarDirector();
        // 生产宝马汽车
        Car bmCar = director.createCar(new BmCar());
        
        System.out.println(bmCar.getRoof() + "\t" + bmCar.getBottom() + "\t" + bmCar.getWheel());
        System.out.println("生产完成");
        
        // 生产奔驰汽车
        Car benCar = director.createCar(new BenCar());
        System.out.println(benCar.getRoof() + "\t" + benCar.getBottom() + "\t" + benCar.getWheel());
        System.out.println("生产完成");
    }
}
